﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling;

namespace Economo.UI.Presenters
{
    public abstract class Presenter<TView> 
    {
        public TView View { get; set; }

        protected Presenter(TView view)
        {
            View = view;
        }

        protected void HandleException(Exception ex)
        {
            bool rethrow = ExceptionPolicy.HandleException(ex, "UIPolicy");
            if (rethrow)
            {
                throw ex;
            }
        }
    }
}

 